const { CronJob } = require('cron');
const log = require('../utils/log');

const testCron = '*/5 * * * *';

const job = new CronJob(
  testCron,
  (() => {
    log.info(`test cron ${new Date()}`);
  }),
);
// job.start();

const nextDates = job.nextDates(10);
nextDates.forEach((i) => log.info(i));
